/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    /// <summary>
    /// 组成工序
    /// </summary>
    [Table("CompositionProcess")]
    public partial class CompositionProcess : BaseEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        [Column(TypeName = "int")]
        [Display(Name = "主键")]
        public int Id { get; set; }

        /// <summary>
        /// 工艺编号
        /// </summary>
        [Column(TypeName = "varchar(30)")]
        [Display(Name = "工艺编号")]
        [MaxLength(30)]
        public string Code { get; set; }

        /// <summary>
        /// 工序编号
        /// </summary>
        [Column(TypeName = "varchar(30)")]
        [Display(Name = "工序编号")]
        [MaxLength(30)]
        public string ProcessCode { get; set; }

        /// <summary>
        /// 工序名称
        /// </summary>
        [Column(TypeName = "varchar(30)")]
        [Display(Name = "工序名称")]
        [MaxLength(30)]
        public string ProcessName { get; set; }

        /// <summary>
        /// 下一道工序
        /// </summary>
        [Column(TypeName = "varchar(30)")]
        [Display(Name = "下一道工序")]
        [MaxLength(30)]
        public string NextProcess { get; set; }

        /// <summary>
        /// 与下一道工序关系
        /// </summary>
        [Column(TypeName = "varchar(50)")]
        [Display(Name = "与下一道工序关系")]
        [MaxLength(50)]
        public string RelationshipWithNextProcess { get; set; }

        /// <summary>
        /// 关键工序
        /// </summary>
        [Column(TypeName = "varchar(50)")]
        [Display(Name = "关键工序")]
        [MaxLength(50)]
        public string CriticalProcess { get; set; }

        /// <summary>
        /// 质检确认
        /// </summary>
        [Column(TypeName = "varchar(50)")]
        [Display(Name = "质检确认")]
        [MaxLength(50)]
        public string QualityInspectionConfirmation { get; set; }

        /// <summary>
        /// 准备时间
        /// </summary>
        [Column(TypeName = "datetime")]
        [Display(Name = "准备时间")]
        public DateTime? PreparationTime { get; set; }

        /// <summary>
        /// 等待时间
        /// </summary>
        [Column(TypeName = "datetime")]
        [Display(Name = "等待时间")]
        public DateTime? WaitingTime { get; set; }

        /// <summary>
        /// 计划图颜色
        /// </summary>
        [Column(TypeName = "varchar(30)")]
        [Display(Name = "计划图颜色")]
        [MaxLength(30)]
        public string Color { get; set; }
    }
}